package com.chagee.store.operation.server.model.lock;

import com.chagee.store.operation.server.redis.model.RedissionLock;

/**
 * 对重复操作的数据进行
 *
 * @author: Jacky-zhan
 * @date: 2024/05/06
 */
public class PushFinanceLock extends RedissionLock {

	private static final String LOCK_KEY_PREVENT_REPEAT_LOCK = "PUSH_FINANCE_LOCK";

	private final String string;

	public PushFinanceLock(String string) {
		super();
		this.string = string;
	}

	@Override
	public String buildLockKey() {
		return LOCK_KEY_PREVENT_REPEAT_LOCK + "_" + this.string;
	}
}
